package com.alameda.mapper.user;

import com.alameda.user.pojo.UserDO;
import com.alameda.user.vo.UserVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 用户 持久层
 *
 * @author Lv
 * @date 2024/2/19
 */
@Mapper
public interface UserMapper extends BaseMapper<UserDO> {
    /**
     * 查询用户信息
     *
     * @param iPage          分页对象
     * @param likeNickname   昵称
     * @param likeEmail      邮箱
     * @param organizationId 组织id
     * @return
     */
    IPage<UserVO> listUserData(@Param("iPage") IPage<UserDO> iPage,
                               @Param("likeNickname") String likeNickname,
                               @Param("likeEmail") String likeEmail,
                               @Param("organizationId") Long organizationId);
}